#ifndef _PORTII_H_
#define _PORTII_H_

#include "wiisprite.h"
#include "Box2D.h"

#include "portal.h"

using namespace wsp;

class Portii {

	public:
		Portii(b2World* world);
		~Portii();
		
		void RenderSight(float sightX, float sightY, float dx, float dy);
		void Render(float dx, float dy);
		
		void SetLocation(b2Vec2* l);
		void SetLocation(float x, float y);
		
		void Accel(float dx);
		
		void SlowToStop();
		
		void AimLocation(float dx, float dy);
		
		float GetAimAngle(){return _aimAngle;}
		
		void EnterPortal(Portal* p);
		
		void EnableLaser(bool b){_designatorEnabled = b;}
		
	    bool IsLaserEnabled(){return _designatorEnabled;}
		
		void Jump();
		
		void Update();
		
		float GetWorldX();
		float GetWorldY();
		
		void Reset();
		
		Sprite* GetSprite(){return &_playerSprite;}
		Sprite* GetCenter(){return &_center;}
		
        b2Body* GetBody(){return _body;}

	private:
		//Player data
		Sprite _playerSprite;
		Sprite _gunSprite;
		Sprite _center;
		
		b2Body* _body;
		b2World* _world;
		
		float _aimX;
		float _aimY;
		float _aimAngle;
		
		float _dx;
		
		bool _designatorEnabled;
		
		GXColor _sightColor;
		
};

#endif //_PORTII_H_
